package cn.dt.ymcc.feignclient;

import cn.dt.ymcc.feignclient.feignclientfallbackfactory.UserFeignFallbackFactory;
import cn.dt.ymcc.result.JSONResult;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value="service-user", fallbackFactory = UserFeignFallbackFactory.class)
@RequestMapping("/user")
public interface UserFeignClient {


    @GetMapping("/getUserByPhone/{phone}")
    JSONResult getUserByphone(@PathVariable("phone") String phone);

}
